#Boa:Frame:Faturamento

import wx

def create(parent):
    return Faturamento(parent)

[wxID_FATURAMENTO, wxID_FATURAMENTOBITMAPBUTTON_MESREFERENCIA, 
 wxID_FATURAMENTOBUTTON1, wxID_FATURAMENTOBUTTON_IR, 
 wxID_FATURAMENTOLISTCTRL1, wxID_FATURAMENTOLISTCTRL2, 
 wxID_FATURAMENTONOTEBOOK1, wxID_FATURAMENTOPANEL1, wxID_FATURAMENTOPANEL2, 
 wxID_FATURAMENTORADIOBUTTON_AGENDAMENTO, wxID_FATURAMENTORADIOBUTTON_CLIENTE, 
 wxID_FATURAMENTORADIOBUTTON_STATUS, wxID_FATURAMENTOSEARCHCTRL1, 
 wxID_FATURAMENTOSEARCHCTRL2, wxID_FATURAMENTOSTATICBOX1, 
 wxID_FATURAMENTOSTATICTEXT_MESREFERENCIA, wxID_FATURAMENTOSTATUSBAR1, 
 wxID_FATURAMENTOTOOLBAR1, wxID_FATURAMENTOTOOLBAR2, wxID_FATURAMENTOTOOLBAR3, 
 wxID_FATURAMENTOWINDOW1, wxID_FATURAMENTOWINDOW2, 
] = [wx.NewId() for _init_ctrls in range(22)]

[wxID_FATURAMENTOTOOLBAR3TOOLS_ADIANTAR, 
 wxID_FATURAMENTOTOOLBAR3TOOLS_DETALHES, 
 wxID_FATURAMENTOTOOLBAR3TOOLS_REMOVER, 
] = [wx.NewId() for _init_coll_toolBar3_Tools in range(3)]

[wxID_FATURAMENTOTOOLBAR2TOOLS_CONFIRMARPAGAMENTO, 
 wxID_FATURAMENTOTOOLBAR2TOOLS_DETALHESPARCELA, 
] = [wx.NewId() for _init_coll_toolBar2_Tools in range(2)]

[wxID_FATURAMENTOTOOLBAR1TOOLS_VOLTAR] = [wx.NewId() for _init_coll_toolBar1_Tools in range(1)]

class Faturamento(wx.Frame):
    def _init_coll_toolBar1_Tools(self, parent):
        # generated method, don't edit

        parent.AddSeparator()
        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/voltar.gif",
              wx.BITMAP_TYPE_GIF), bmpDisabled=wx.Bitmap(u"Imagens/voltar.gif",
              wx.BITMAP_TYPE_GIF), id=wxID_FATURAMENTOTOOLBAR1TOOLS_VOLTAR,
              kind=wx.ITEM_NORMAL, label='', longHelp='', shortHelp=u'Voltar')
        self.Bind(wx.EVT_TOOL, self.OnToolBar1Tools_voltarTool,
              id=wxID_FATURAMENTOTOOLBAR1TOOLS_VOLTAR)

        parent.Realize()

    def _init_coll_listCtrl1_Columns(self, parent):
        # generated method, don't edit

        parent.InsertColumn(col=0, format=wx.LIST_FORMAT_LEFT,
              heading=u'Fatura', width=-1)
        parent.InsertColumn(col=1, format=wx.LIST_FORMAT_LEFT,
              heading=u'Agendamento', width=-2)
        parent.InsertColumn(col=2, format=wx.LIST_FORMAT_LEFT,
              heading=u'Valor da Parcela', width=-2)
        parent.InsertColumn(col=3, format=wx.LIST_FORMAT_LEFT,
              heading=u'Status', width=-1)
        parent.InsertColumn(col=4, format=wx.LIST_FORMAT_LEFT,
              heading=u'Cliente', width=-1)
        parent.InsertColumn(col=5, format=wx.LIST_FORMAT_LEFT,
              heading=u'Data de Lan\xe7amento', width=-2)
        parent.InsertColumn(col=6, format=wx.LIST_FORMAT_LEFT,
              heading=u'Data de Vencimento', width=-2)
        parent.InsertColumn(col=7, format=wx.LIST_FORMAT_LEFT,
              heading=u'Data de Recebimento', width=-2)
        parent.InsertColumn(col=8, format=wx.LIST_FORMAT_LEFT,
              heading=u'N\xfamero da Parcela', width=-2)

    def _init_coll_notebook1_Pages(self, parent):
        # generated method, don't edit

        parent.AddPage(imageId=-1, page=self.panel2, select=False,
              text=u'Faturas')
        parent.AddPage(imageId=-1, page=self.panel1, select=True,
              text=u'Parcelas')

    def _init_coll_toolBar3_Tools(self, parent):
        # generated method, don't edit

        parent.AddSeparator()
        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/Details.gif",
              wx.BITMAP_TYPE_GIF), bmpDisabled=wx.Bitmap(u"Imagens/Details.gif",
              wx.BITMAP_TYPE_GIF), id=wxID_FATURAMENTOTOOLBAR3TOOLS_DETALHES,
              kind=wx.ITEM_NORMAL, label='', longHelp='',
              shortHelp=u'Detalhes')
        parent.AddSeparator()
        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/remove.gif",
              wx.BITMAP_TYPE_GIF), bmpDisabled=wx.Bitmap(u"Imagens/remove.gif",
              wx.BITMAP_TYPE_GIF), id=wxID_FATURAMENTOTOOLBAR3TOOLS_REMOVER,
              kind=wx.ITEM_NORMAL, label='', longHelp='', shortHelp=u'Remover')
        parent.AddSeparator()
        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/adiantar.gif",
              wx.BITMAP_TYPE_GIF),
              bmpDisabled=wx.Bitmap(u"Imagens/adiantar.gif",
              wx.BITMAP_TYPE_GIF), id=wxID_FATURAMENTOTOOLBAR3TOOLS_ADIANTAR,
              kind=wx.ITEM_NORMAL, label='', longHelp='',
              shortHelp=u'Adiantar Parcelas')

        parent.Realize()

    def _init_coll_toolBar2_Tools(self, parent):
        # generated method, don't edit

        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/Details.gif",
              wx.BITMAP_TYPE_GIF), bmpDisabled=wx.Bitmap(u"Imagens/Details.gif",
              wx.BITMAP_TYPE_GIF),
              id=wxID_FATURAMENTOTOOLBAR2TOOLS_DETALHESPARCELA,
              kind=wx.ITEM_NORMAL, label='', longHelp='',
              shortHelp=u'Detalhes da Parcela')
        parent.DoAddTool(bitmap=wx.Bitmap(u"Imagens/confirm.gif",
              wx.BITMAP_TYPE_GIF), bmpDisabled=wx.Bitmap(u"Imagens/confirm.gif",
              wx.BITMAP_TYPE_GIF),
              id=wxID_FATURAMENTOTOOLBAR2TOOLS_CONFIRMARPAGAMENTO,
              kind=wx.ITEM_NORMAL, label='', longHelp='',
              shortHelp=u'Confirmar Pagamento')

        parent.Realize()

    def _init_coll_listCtrl2_Columns(self, parent):
        # generated method, don't edit

        parent.InsertColumn(col=0, format=wx.LIST_FORMAT_LEFT,
              heading=u'Agendamento', width=-2)
        parent.InsertColumn(col=1, format=wx.LIST_FORMAT_LEFT,
              heading=u'Cliente', width=-1)
        parent.InsertColumn(col=2, format=wx.LIST_FORMAT_LEFT,
              heading=u'Valor Total', width=-1)
        parent.InsertColumn(col=3, format=wx.LIST_FORMAT_LEFT,
              heading=u'Data Lan\xe7amento', width=-2)
        parent.InsertColumn(col=4, format=wx.LIST_FORMAT_LEFT,
              heading=u'Status', width=-1)
        parent.InsertColumn(col=5, format=wx.LIST_FORMAT_LEFT,
              heading=u'Forma de Pagamento', width=-2)
        parent.InsertColumn(col=6, format=wx.LIST_FORMAT_LEFT,
              heading=u'Data de Recebimento', width=-2)

    def _init_coll_statusBar1_Fields(self, parent):
        # generated method, don't edit
        parent.SetFieldsCount(1)

        parent.SetStatusText(number=0, text=u'Acompanhar Faturamento')

        parent.SetStatusWidths([-1])

    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FATURAMENTO, name=u'Faturamento',
              parent=prnt, pos=wx.Point(302, 110), size=wx.Size(1088, 631),
              style=wx.DEFAULT_FRAME_STYLE, title=u'Acompanhar Faturamento')
        self.SetClientSize(wx.Size(1072, 593))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.statusBar1 = wx.StatusBar(id=wxID_FATURAMENTOSTATUSBAR1,
              name='statusBar1', parent=self, style=0)
        self._init_coll_statusBar1_Fields(self.statusBar1)
        self.SetStatusBar(self.statusBar1)

        self.toolBar1 = wx.ToolBar(id=wxID_FATURAMENTOTOOLBAR1, name='toolBar1',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(1072, 32),
              style=wx.TB_HORIZONTAL | wx.NO_BORDER)
        self.toolBar1.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL, False,
              u'Tahoma'))
        self.SetToolBar(self.toolBar1)

        self.notebook1 = wx.Notebook(id=wxID_FATURAMENTONOTEBOOK1,
              name='notebook1', parent=self, pos=wx.Point(0, 32),
              size=wx.Size(1072, 538), style=wx.NB_FIXEDWIDTH)
        self.notebook1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))
        self.notebook1.SetBackgroundColour(wx.Colour(250, 250, 250))

        self.panel1 = wx.Panel(id=wxID_FATURAMENTOPANEL1, name='panel1',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(1064,
              509), style=wx.TAB_TRAVERSAL)
        self.panel1.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.panel2 = wx.Panel(id=wxID_FATURAMENTOPANEL2, name='panel2',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(1064,
              509), style=wx.TAB_TRAVERSAL)
        self.panel2.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.toolBar2 = wx.ToolBar(id=wxID_FATURAMENTOTOOLBAR2, name='toolBar2',
              parent=self.panel1, pos=wx.Point(0, 0), size=wx.Size(1064, 31),
              style=wx.TB_3DBUTTONS | wx.NO_BORDER | wx.TB_HORIZONTAL)

        self.toolBar3 = wx.ToolBar(id=wxID_FATURAMENTOTOOLBAR3, name='toolBar3',
              parent=self.panel2, pos=wx.Point(0, 0), size=wx.Size(1064, 31),
              style=wx.TB_HORIZONTAL | wx.NO_BORDER)

        self.window1 = wx.Window(id=wxID_FATURAMENTOWINDOW1, name='window1',
              parent=self.panel2, pos=wx.Point(0, 32), size=wx.Size(1064, 64),
              style=0)
        self.window1.SetBackgroundColour(wx.Colour(250, 250, 250))

        self.window2 = wx.Window(id=wxID_FATURAMENTOWINDOW2, name='window2',
              parent=self.panel1, pos=wx.Point(0, 32), size=wx.Size(1064, 64),
              style=0)
        self.window2.SetBackgroundColour(wx.Colour(250, 250, 250))

        self.listCtrl1 = wx.ListCtrl(id=wxID_FATURAMENTOLISTCTRL1,
              name='listCtrl1', parent=self.panel1, pos=wx.Point(0, 104),
              size=wx.Size(1064, 408), style=wx.LC_REPORT)
        self._init_coll_listCtrl1_Columns(self.listCtrl1)

        self.listCtrl2 = wx.ListCtrl(id=wxID_FATURAMENTOLISTCTRL2,
              name='listCtrl2', parent=self.panel2, pos=wx.Point(0, 104),
              size=wx.Size(1064, 400), style=wx.LC_REPORT)
        self._init_coll_listCtrl2_Columns(self.listCtrl2)

        self.searchCtrl1 = wx.SearchCtrl(id=wxID_FATURAMENTOSEARCHCTRL1,
              name='searchCtrl1', parent=self.window1, pos=wx.Point(8, 32),
              size=wx.Size(456, 24), style=0, value=u'')

        self.staticText_mesreferencia = wx.StaticText(id=wxID_FATURAMENTOSTATICTEXT_MESREFERENCIA,
              label=u'Junho/2012', name=u'staticText_mesreferencia',
              parent=self.window1, pos=wx.Point(833, 22), size=wx.Size(85, 19),
              style=0)
        self.staticText_mesreferencia.Center(wx.VERTICAL)
        self.staticText_mesreferencia.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL,
              wx.NORMAL, True, u'Tahoma'))
        self.staticText_mesreferencia.SetForegroundColour(wx.Colour(255, 0, 0))
        self.staticText_mesreferencia.Enable(True)

        self.bitmapButton_mesreferencia = wx.BitmapButton(bitmap=wx.Bitmap(u"Imagens/month.gif",
              wx.BITMAP_TYPE_GIF),
              id=wxID_FATURAMENTOBITMAPBUTTON_MESREFERENCIA,
              name=u'bitmapButton_mesreferencia', parent=self.window1,
              pos=wx.Point(680, 16), size=wx.Size(128, 32),
              style=wx.BU_AUTODRAW)
        self.bitmapButton_mesreferencia.Center(wx.VERTICAL)

        self.radioButton_agendamento = wx.RadioButton(id=wxID_FATURAMENTORADIOBUTTON_AGENDAMENTO,
              label=u'Agendamento', name=u'radioButton_agendamento',
              parent=self.window1, pos=wx.Point(32, 8), size=wx.Size(96, 16),
              style=0)
        self.radioButton_agendamento.SetValue(True)

        self.radioButton_cliente = wx.RadioButton(id=wxID_FATURAMENTORADIOBUTTON_CLIENTE,
              label=u'Cliente', name=u'radioButton_cliente',
              parent=self.window1, pos=wx.Point(216, 8), size=wx.Size(56, 16),
              style=0)
        self.radioButton_cliente.SetValue(True)

        self.radioButton_status = wx.RadioButton(id=wxID_FATURAMENTORADIOBUTTON_STATUS,
              label=u'Status', name=u'radioButton_status', parent=self.window1,
              pos=wx.Point(360, 8), size=wx.Size(64, 16), style=0)
        self.radioButton_status.SetValue(True)

        self.staticBox1 = wx.StaticBox(id=wxID_FATURAMENTOSTATICBOX1, label=u'',
              name='staticBox1', parent=self.window1, pos=wx.Point(640, 0),
              size=wx.Size(304, 56), style=0)

        self.button_Ir = wx.Button(id=wxID_FATURAMENTOBUTTON_IR, label=u'Ir',
              name=u'button_Ir', parent=self.window1, pos=wx.Point(472, 32),
              size=wx.Size(40, 26), style=0)

        self.button1 = wx.Button(id=wxID_FATURAMENTOBUTTON1, label=u'Ir',
              name='button1', parent=self.window2, pos=wx.Point(472, 32),
              size=wx.Size(40, 26), style=0)

        self.searchCtrl2 = wx.SearchCtrl(id=wxID_FATURAMENTOSEARCHCTRL2,
              name='searchCtrl2', parent=self.window2, pos=wx.Point(8, 32),
              size=wx.Size(456, 24), style=0, value=u'')

        self._init_coll_toolBar1_Tools(self.toolBar1)
        self._init_coll_notebook1_Pages(self.notebook1)
        self._init_coll_toolBar2_Tools(self.toolBar2)
        self._init_coll_toolBar3_Tools(self.toolBar3)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnToolBar1Tools_voltarTool(self, event):
        self.Close()
